/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package example;

import andreafrancia.remoted.RemotizationFailedException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.util.List;

/**
 *
 * @author Andrea Francia andrea.francia at gmx dot org
 */
public class Client {
    public static void main(String[] args) 
            throws RemoteException, NotBoundException, RemotizationFailedException 
    {
        Server server = (Server) LocateRegistry.getRegistry().lookup("test");
        List<String> list = server.getRemotizedList();
        for(int i = 0; i < list.size(); i ++) {
            System.out.println("" + i + ": "+ list.get(i));
        }
    }
}
